package com.demo.youxuanmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.youxuanmall.entity.Address;

import java.util.List;

public interface AddressService extends IService<Address> {
    /**
     * 获取用户的收货地址列表
     */
    List<Address> getUserAddresses(Long userId);

    /**
     * 添加收货地址
     */
    void addAddress(Address address);

    /**
     * 更新收货地址
     */
    void updateAddress(Address address);

    /**
     * 删除收货地址
     */
    void deleteAddress(Long id);

    /**
     * 设置默认地址
     */
    void setDefaultAddress(Long userId, Long addressId);
} 